#pragma once
#include <atomic>
#include <mutex>
#include <string>

struct WebStatus {
    std::atomic<int> total_objects{0};
    std::atomic<int> car_count{0};
    std::atomic<int> person_count{0};
    std::atomic<float> fps{0.0f};
    std::mutex last_mutex;
    std::string last_update; // 可选：最近一次更新时间字符串
};
